#ifndef PARSER_HPP
 #define PARSER_HPP

#include <string>
#include "ClientList.h"

class Parser
{
 public:
  Parser();
  ~Parser();
  void		Parse(int id, std::string data);
 private:
  std::string	getNextWord();
  void		heloHandler();
  void		fromHandler();
  void		toHandler();
  void		quitHandler();
  void		dataHandler();
  void		bodyHandler();
  std::string	_data;
  int		_id;
  int		_pos;
  ClientList	*_ClientList;
};

#endif // PARSER_HPP
